package com.spring.data.jpa.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.spring.data.jpa.domain.User;


public interface UserService {  
	
  
	void saveUser(User user);       
   
	User findUserById(Integer id);       
   
	void updateUser(User user);        
   
	void deleteUserById(Integer id);
	
	User findByTheName(String name);
	
	List<User> findByAccount(String account);
	
	List<User> findByPassword(String password);
	
	Page<User> findByAccount(String account, Pageable pageable);
	
	Map<String, Object> searchByCondition(int page,int start,int limit,User user);
}
